package db

import "core/mysql"

type AdminPlayer struct {
	ID       int64  `xorm:"pk autoincr id"`                             //
	UserName string `xorm:"varchar(25) notnull unique index user_name"` //
	Password string `xorm:"varchar(25) notnull password"`               //
	Phone    string `xorm:"varchar(25) notnull phone"`                  //
	RealName string `xorm:"varchar(25) notnull real_name"`              // 真实姓名
}

func GetPlayer(uid int64) (p *AdminPlayer, err error) {
	p = new(AdminPlayer)
	err = mysql.Load(p)
	if err != nil {
		return
	}
	return
}
